package com.vipheyue.bigbusiness.utils;

import android.content.Context;
import android.graphics.Bitmap;
import android.widget.ImageView;

import com.lidroid.xutils.BitmapUtils;
import com.vipheyue.bigbusiness.R;

/**
 * Created by heyue on 2015/10/30.
 */
public class ImageUtil {

    private static Bitmap bitmap;
    public final static int iMAGEDOWNSUCCESS =88;
    public static void setImageURI(Context context, ImageView view, String uri) {
        BitmapUtils bitmapUtils = new BitmapUtils(context);
        bitmapUtils.configDefaultLoadingImage(R.drawable.ic_default_adimage);//默认背景图片
        bitmapUtils.configDefaultBitmapConfig(Bitmap.Config.RGB_565);
        bitmapUtils.display(view, uri);
    }


}